$OpenBSD: patch-x11_png_c,v 1.1 2011/07/08 20:38:01 naddy Exp $

Fix build with png-1.5.

--- x11/png.c.orig	Wed Jul  6 11:46:43 2011
+++ x11/png.c	Wed Jul  6 11:47:32 2011
@@ -88,7 +88,7 @@ uint8 *png_to_data(unsigned char *data, int len, int *
 	png_destroy_read_struct (&png_ptr, NULL, NULL);
 	return NULL;
     }
-    if (setjmp (png_ptr->jmpbuf)) {
+    if (setjmp (png_jmpbuf (png_ptr))) {
 	png_destroy_read_struct (&png_ptr, &info_ptr, NULL);
 	return NULL;
     }
@@ -600,7 +600,7 @@ int png_to_xpixmap(Display *display, Drawable draw, un
 	png_destroy_read_struct (&png_ptr, NULL, NULL);
 	return PNGX_OUTOFMEM;
     }
-    if (setjmp (png_ptr->jmpbuf)) {
+    if (setjmp (png_jmpbuf (png_ptr))) {
 	png_destroy_read_struct (&png_ptr, &info_ptr, NULL);
 	return PNGX_DATA;
     }
